<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page  import="com.ambow.Entity.*" %>
<%@ page  import="com.ambow.dao.*" %>
<%@ page  import="com.ambow.dao.impl.*" %>
<%@ page  import="com.ambow.service.*" %>
<%@ page  import="com.ambow.service.impl.*" %>
<%@ page  import="com.ambow.utils.*" %>
<%@ page  import="com.ambow.servlet.*" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>教材管理系统</title>
<link href="<%=path %>/static/css/css.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    $( "#datepicker1" ).datepicker({ dateFormat: 'yy-mm-dd' });
  } );

  function check(){
	  var startTime = document.getElementById("datepicker").value;   
	    var endTime = document.getElementById("datepicker1").value;   
		    var arys1= new Array();      
		    var arys2= new Array();      
		if(checkStartDate !="" && checkEndDate !="") {      
		    arys1=checkStartDate.split('/');      
		      var sdate=new Date(arys1[0],parseInt(arys1[1]-1),arys1[2]);      
		    arys2=checkEndDate.split('/');      
		    var edate=new Date(arys2[0],parseInt(arys2[1]-1),arys2[2]);      
		if(sdate > edate) {      
		    alert("日期开始时间大于结束时间");         
		    return false;         
		}  else {   
		   
		    return true;      
		    }   
		    }  
		 return true;       
		}     

	
  </script>
</head>

<body>
	<h3 id="subTitle">盘点管理－盘点记录查看</h3>

	<form action="<%=path%>/InventoryServlet?status=record" onsubmit=" return check()">
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="table">


			<tr>
				<td width="20%" align="right" class="title2">管理员:</td>
				<td class="within2bg">&nbsp;<input name="operator" type="text"
					class="input2" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">起始时间:</td>
				<td class="within2bg">&nbsp;<input  name="startTime" type="text"
					class="input2" id="datepicker" /></td>
			</tr>

			<tr>
				<td width="20%" align="right" class="title2">终止时间:</td>
				<td class="within2bg">&nbsp;<input  name="endTime" type="text"
					class="input2" id="datepicker1" /></td>
			</tr>
			
			<tr> <input type="hidden" name="status" value="record"/>
				<td width="20%" align="center" class="title2"></td>
				<td class="within2bg">&nbsp; <input name="Submit2"
					type="submit" class="input2" value="查看" /> <input name="Submit3"
					type="reset" class="input2" value="重置" />
				</td>
			</tr>

		</table>

	</form>
</body>
</html>